include_directories(../driver/include)
link_libraries(driver)
include_directories(../component/include)
link_libraries(component)

add_executable(test_IMU IMUTest.cpp)

add_executable(test_joystick joystickTest.cpp)
add_executable(test_serialStick serialStickTest.cpp)

add_executable(test_serial serialTest.cpp)
add_executable(test_serialMotor serialMotorTest.cpp)
add_executable(test_serialMultiMotor serialMultiMotorTest.cpp)

add_executable(test_can canTest.cpp)
add_executable(test_canMotor canMotorTest.cpp)
add_executable(test_canMultiMotor canMultiMotorTest.cpp)

add_executable(test_message_writer messageWriter.cpp)
add_executable(test_message_reader messageReader.cpp)

add_executable(test_yaml yamlTest.cpp)
find_package(yaml-cpp REQUIRED)
target_include_directories(test_yaml PRIVATE ${YAML_CPP_INCLUDE_DIR})
target_link_directories(test_yaml PRIVATE ${YAML_CPP_LIBRARIES})
target_link_libraries(test_yaml yaml-cpp)

add_executable(test_server serverTest.cpp)

add_executable(test_RCMotor RCMotorTest.cpp)
